package br.edu.ufcg.sri;

import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.util.List;


public class EscutadorDeAcao implements ActionListener{
	
	private EscutadorDeChave keyListener;
	
	public EscutadorDeAcao(EscutadorDeChave keyListener){
		this.keyListener = keyListener;
		
	}

	public void actionPerformed(ActionEvent arg0) {
		List<String> words = keyListener.getShowWords();
		StringBuffer bf = new StringBuffer();
		
		for(String word : words){
			bf.append(word+"\n");
		}
		
		//textField.setText(bf.toString());
	}

}
